package com.size.mall.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.size.mall.mallapi.entity.PmsProductInfo;
import com.size.mall.mallapi.service.PmsProductInfoService;
import com.size.mall.mapper.PmsProductInfoMapper;

import java.util.List;

@Service
public class PmsProductInfoServiceImpl extends ServiceImpl<PmsProductInfoMapper, PmsProductInfo> implements
        PmsProductInfoService {


    @Override

    public List<PmsProductInfo> spuList(String catalog3Id) {

        QueryWrapper<PmsProductInfo> qw = new QueryWrapper<>();
        qw.eq("catalog3_id", catalog3Id);
        return this.list(qw);

    }
}
